package com.librelato.webservices;

import java.io.Serializable;

import javax.xml.namespace.QName;

import org.apache.axis.description.ElementDesc;
import org.apache.axis.description.TypeDesc;
import org.apache.axis.encoding.Deserializer;
import org.apache.axis.encoding.Serializer;
import org.apache.axis.encoding.ser.BeanDeserializer;
import org.apache.axis.encoding.ser.BeanSerializer;

import com.librelato.persistencia.config.PropriedadesDeConfiguracao;
import com.librelato.persistencia.config.PropriedadesDeConfiguracaoEnum;

public class DadosManu implements Serializable {
	private static final long serialVersionUID = 7822518767358220894L;

	private String codBem;

	private String codSolici;

	private String nomeSolici;

	private String descServ;

	private String filial;

	private String ramal;

	private String tipoManut;

	private String tipoServ;

	private static String ip = PropriedadesDeConfiguracao.getInstance()
			.getValorPropriedade(PropriedadesDeConfiguracaoEnum.WSDL_IP);

	private static TypeDesc typeDesc = new TypeDesc(DadosManu.class, true);

	public DadosManu() {
		// TODO Auto-generated constructor stub
	}

	static {
		typeDesc.setXmlType(new QName(ip, "DADOSMANU"));
		ElementDesc elemField = new ElementDesc();
		elemField.setFieldName("CODBEM");
		elemField.setXmlName(new QName(ip, "CODBEM"));
		elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema",
				"string"));
		elemField.setNillable(false);
		typeDesc.addFieldDesc(elemField);

		elemField = new ElementDesc();
		elemField.setFieldName("CODSOLICI");
		elemField.setXmlName(new QName(ip, "CODSOLICI"));
		elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema",
				"string"));
		elemField.setNillable(false);
		typeDesc.addFieldDesc(elemField);

		elemField = new ElementDesc();
		elemField.setFieldName("DESCSERV");
		elemField.setXmlName(new QName(ip, "DESCSERV"));
		elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema",
				"string"));
		elemField.setNillable(false);
		typeDesc.addFieldDesc(elemField);

		elemField = new ElementDesc();
		elemField.setFieldName("FILIAL");
		elemField.setXmlName(new QName(ip, "FILIAL"));
		elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema",
				"string"));
		elemField.setNillable(false);
		typeDesc.addFieldDesc(elemField);

		elemField = new ElementDesc();
		elemField.setFieldName("NOMESOLICI");
		elemField.setXmlName(new QName(ip, "NOMESOLICI"));
		elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema",
				"string"));
		elemField.setNillable(false);
		typeDesc.addFieldDesc(elemField);

		elemField = new ElementDesc();
		elemField.setFieldName("RAMAL");
		elemField.setXmlName(new QName(ip, "RAMAL"));
		elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema",
				"string"));
		elemField.setNillable(false);
		typeDesc.addFieldDesc(elemField);

		elemField = new ElementDesc();
		elemField.setFieldName("TIPOMANUT");
		elemField.setXmlName(new QName(ip, "TIPOMANUT"));
		elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema",
				"string"));
		elemField.setNillable(false);
		typeDesc.addFieldDesc(elemField);

		elemField = new ElementDesc();
		elemField.setFieldName("TIPOSERV");
		elemField.setXmlName(new QName(ip, "TIPOSERV"));
		elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema",
				"string"));
		elemField.setNillable(false);
		typeDesc.addFieldDesc(elemField);
	}

	public String getCodBem() {
		return codBem;
	}

	public void setCodBem(String codBem) {
		this.codBem = codBem;
	}

	public static TypeDesc getTypeDesc() {
		return typeDesc;
	}
	
	public String getCodSolici() {
		return codSolici;
	}

	public void setCodSolici(String codSolici) {
		this.codSolici = codSolici;
	}

	public String getNomeSolici() {
		return nomeSolici;
	}

	public void setNomeSolici(String nomeSolici) {
		this.nomeSolici = nomeSolici;
	}

	public String getDescServ() {
		return descServ;
	}

	public void setDescServ(String descServ) {
		this.descServ = descServ;
	}

	public String getFilial() {
		return filial;
	}

	public void setFilial(String filial) {
		this.filial = filial;
	}

	public String getRamal() {
		return ramal;
	}

	public void setRamal(String ramal) {
		this.ramal = ramal;
	}

	public String getTipoManut() {
		return tipoManut;
	}

	public void setTipoManut(String tipoManut) {
		this.tipoManut = tipoManut;
	}

	public String getTipoServ() {
		return tipoServ;
	}

	public void setTipoServ(String tipoServ) {
		this.tipoServ = tipoServ;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public static void setTypeDesc(TypeDesc typeDesc) {
		DadosManu.typeDesc = typeDesc;
	}

	@SuppressWarnings("rawtypes")
	public static Serializer getSerializer(String mechType, Class _javaType,
			QName _xmlType) {
		return new BeanSerializer(_javaType, _xmlType, typeDesc);
	}

	@SuppressWarnings("rawtypes")
	public static Deserializer getDeserializer(String mechType,
			Class _javaType, QName _xmlType) {
		return new BeanDeserializer(_javaType, _xmlType, typeDesc);
	}

}
